package com.java.mp.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "user")
public class User {
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;
    private String name;
    private Integer age;
    private String email;
    private Date createTime;
    private Date updateTime;
    //乐观锁
    @Version
    private Integer version;
    //逻辑删除
    @TableLogic
    private Boolean deleted;
}
